package xyz.xtt.asset.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资产编号表
 * </p>
 *
 * @author author
 * @since 2025-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_asset_no")
public class AssetNo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 根资产ID
     */
    private Long rootAssetId;

    /**
     * 资产编号
     */
    private String assetNo;

    /**
     * 资产ID
     */
    private Long assetId;

    /**
     * 用户ID 
     */
    private Long appUserId;

    /**
     * 资产交易表ID
     */
    private Long transactionId;

    /**
     * 资产类型 0 资产 1铸造权 注意：当此字段值为1时asset_id为铸造权所对应父资产id
     */
    private Integer assetType;

    /**
     * 资产来源：0:purchase 1:gift 2:activity
     */
    private Integer source;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;


}
